package com.zz.service.impl;

import com.zz.entity.User;
import com.zz.mapper.UserMapper;
import com.zz.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: java类作用描述
 * @Author: Bsea
 * @CreateDate: 2019/6/16$ 20:50$
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper uesrMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(User record) {
        return uesrMapper.insert(record);
    }

    @Override
    public int insertSelective(User record) {
        return uesrMapper.insertSelective(record);
    }

    @Override
    public User selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(User record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(User record) {
        return 0;
    }

    @Override
    public User findByUserName(String userName) {
        return uesrMapper.findByUserName(userName);
    }
}
